// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/store'

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>',
  created(){
    var w = document.documentElement.clientWidth || document.body.clientWidth
    document.getElementsByTagName('style')[0].innerHTML="html{font-size:"+(w/24)+"px;}"
    window.onresize=function(){
      var w = document.documentElement.clientWidth || document.body.clientWidth
      document.getElementsByTagName('style')[0].innerHTML="html{font-size:"+(w/24)+"px;}"
    }
  }
})
